/****************************************************
          File Name:12-1.cpp
          Author: Abby Cin
          Mail: abbytsing@gmail.com
          Created Time: Wed 24 Dec 2014 03:21:32 PM CST
*****************************************************/

#include"12-1.h"

int main()
{
    Cow cow("little cow", "eats grass", 1000); // Cow(const char *, const char *, double)
    Cow another;        // Cow();
    Cow res(another);   // Cow(const Cow & c)

    std::cout << "----cow---\n";
    cow.ShowCow();
    std::cout << std::endl;
    std::cout << "++++another++++\n";
    another.ShowCow();
    std::cout << std::endl;
    std::cout << "*****res*****\n";
    res.ShowCow();
    
    res = cow;          // Cow & operator=(const Cow & c);
    std::cout << std::endl;
    std::cout << "#### after res = cow, res.ShowCow() ####\n";
    res.ShowCow();

    return 0;
}
